package org.jeecg.modules.system.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.jeecg.common.system.base.entity.JeecgEntity;
import org.jeecgframework.poi.excel.annotation.ExcelCollection;
import org.jeecgframework.poi.excel.annotation.ExcelEntity;
import org.jeecgframework.poi.excel.annotation.ExcelVerify;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: Clinical Management Status
 * @Author: jeecg-boot
 * @Date:   2022-09-20
 * @Version: V1.0
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class    CmProject  implements Serializable {
    private static final long serialVersionUID = 1L;

    /**ID*/
    @TableId(type = IdType.ASSIGN_ID)
    private String id;
    /**Project name*/
    @Excel(name = "Name",groupName = "Project")
    private String projectName;
    /**DML*/
    @Excel(name = "DML",groupName = "Project")
    private String dmlName;
    /**
     * DML realName
     */
    @Excel(name = "DML Real Name",groupName = "Project")
    @TableField(exist = false)
    private String dmlRealName;
    /**Status*/
    @Excel(name = "Status",dicCode = "cm_project_status",groupName = "Project")
    @Dict(dicCode = "cm_project_status")
    private String status;
    /**Type*/
    @Excel(name = "Type",dicCode = "cm_project_type",groupName = "Project")
    @Dict(dicCode = "cm_project_type")
    private String type;

    /**Study Type*/
    @Excel(name = "Study Type",dicCode = "cm_project_study_type",groupName = "Project")
    @Dict(dicCode = "cm_project_study_type")
    private String studyType;
    /**System*/
    @Excel(name = "System",groupName = "Project")
    private String system;
    /**Compound*/
    @Excel(name = "Compound",groupName = "Project")
    private String compound;
    /**Sponsor*/
    @Excel(name = "Sponsor",groupName = "Project")
    private String sponsor;
    /**Sample Size*/
    @Excel(name = "Sample Size",groupName = "Project")
    private Integer sampleSize;
    /** Budget Hours */
    @Excel(name = "Budget Hours",groupName = "Project")
    private Integer budgetHours;
    /** Comments */
    @Excel(name = "Comments",groupName = "Project")
    private String comments;
    /**
     * Resource Comments
     */
    private String resourceComments;
    /** DelFlag */
    @TableLogic
    private Integer delFlag;


    /**
     * 创建人
     */
    private java.lang.String createBy;

    /**
     * 创建时间
     */
    @Excel(name = "Create Time",groupName = "Project",format="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private java.util.Date createTime;

    /**
     * 更新人
     */
    private java.lang.String updateBy;

    /**
     * 更新时间
     */
    @Excel(name = "Update Time",groupName = "Project",format="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private java.util.Date updateTime;



    private String sysOrgCode;

    /**
     * 导入功能需要字段
     */
    @TableField(exist = false)
    @ExcelEntity(name = "CRF/aCRF final",show = true)
    private CmProjectEvent crfFinalEvent;
    @TableField(exist = false)
    @ExcelEntity(name = "DMP sign-off",show = true)
    private CmProjectEvent dmpSignOffEvent;
    @TableField(exist = false)
    @ExcelEntity(name = "Go-live Status （Approval signed）",show = true)
    private CmProjectEvent approvalSignedEvent;
    @TableField(exist = false)
    @ExcelEntity(name = "SIV Date",show = true)
    private CmProjectEvent sivDateEvent;
    @TableField(exist = false)
    @ExcelEntity(name = "FPFV",show = true)
    private CmProjectEvent fpfvEvent;
    @TableField(exist = false)
    @ExcelEntity(name = "LPLV",show = true)
    private CmProjectEvent lplvEvent;
    @TableField(exist = false)
    @ExcelEntity(name = "Data Transfer",show = true)
    private CmProjectEvent dataTransferEvent;
    @TableField(exist = false)
    @ExcelEntity(name = "SAP sign-off",show = true)
    private CmProjectEvent sapSignOffEvent;
    @TableField(exist = false)
    @ExcelEntity(name = "Database Lock",show = true)
    private CmProjectEvent databaseLockEvent;
    @TableField(exist = false)
    @ExcelEntity(name = "DMR sign-off",show = true)
    private CmProjectEvent dmrSignOffEvent;
    @TableField(exist = false)
    @ExcelEntity(name = "Decommission",show = true)
    private CmProjectEvent decommissionEvent;



    @TableField(exist = false)
    private List<CmProjectEvent> addEvents;
    @TableField(exist = false)
    private List<CmProjectEvent> updateEvents;


    @TableField(exist = false)
    private List<CmProjectResourceMonth> cmProjectResourceMonthList;


}
